//
// Created by dave on 18-8-3.
//

#pragma once
#include <memory>
#include "channel.h"

class session : public std::enable_shared_from_this {
public:
    session(std::shared_ptr<channel> ch) : channel_(ch) { }

    std::shared_ptr<channel> get_channel() const { return channel_; }

    std::string get_sid() const { return sid_; }
private:
    std::shared_ptr<channel> channel_;
    /// session id
    std::string sid_;


};